import request from './request';

// 用户管理API
export function getUsers(params) {
  return request({
    url: '/admin/users',
    method: 'get',
    params
  });
}

export function getUserDetail(id) {
  return request({
    url: `/admin/users/${id}`,
    method: 'get'
  });
}

export function updateUserStatus(id, status) {
  return request({
    url: `/admin/users/${id}/status`,
    method: 'put',
    data: { status }
  });
}

